#include <fstream>

long long gcd(long long a, long long b, long long& x, long long& y)
{
   if (a == 0) 
   {
      x = 0; 
      y = 1;
      return b;
   }
   long long x1, y1;
   long long d = gcd(b % a, a, x1, y1);
   x = y1 - (b / a) * x1;
   y = x1;
   return d;
}

int main()
{
   std::ifstream in("in.txt");
   std::ofstream out("out.txt");
   long long a, b, c;
   while (in >> a >> b >> c)
   {
      if (a == 0 && b == 0)
      {
         if (c == 0)
         {
            out << "1 1\n";
         }
         else
         {
            out << "<none>\n";
         }
         continue;
      }
      long long x, y;
      long long g = gcd(a, b, x, y);
      if (c % g != 0)
      {
         out << "<none>\n";
      }
      else
      {
         x = x * c / g;
         y = y * c / g;
         out << x << " " << y << "\n";
      }
   }
   return 0;
}
